package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Yami
 */
@Data
@TableName("tz_order_settlement")
@Schema(description ="订单结算表")
public class OrderSettlement implements Serializable {

    @TableId
    private Long settlementId;

    @Schema(description = "用户系统内部的订单号")
    private String payNo;

    @Schema(description = "订单号")
    private String orderNumber;

    @Schema(description = "支付方式 1:微信小程序支付 2:支付宝 3微信扫码支付 4 微信h5支付 5微信公众号支付 6支付宝H5支付 7支付宝APP支付 8微信APP支付 9余额支付 10全球PayPal支付 11新生支付支付宝H5支付 12新生支付云闪付H5支付 13新生支付支付宝生活号支付 14新生支付微信公众号支付 15新生支付快捷支付下单")
    private Integer payType;

    @Schema(description = "支付金额")
    private Double payAmount;

    @Schema(description = "支付积分")
    private Long payScore;

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "支付状态")
    private Integer payStatus;

    @Schema(description = "版本号")
    private Integer version;
}
